<#assign path = request.getContextPath() />
<!DOCTYPE html>
<html class="x-admin-sm">

	<head>
		<meta charset="UTF-8">
		<title>人员名单</title>
        <meta name="renderer" content="webkit">
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
        <meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi" />
        <link rel="stylesheet" href="${path}/static/css/font.css">
        <link rel="stylesheet" href="${path}/static/css/css.css">
		<link rel="stylesheet" type="text/css" href="${path}/static/css/xadmin.css"/>
        <script type="text/javascript" src="${path}/static/lib/layui/layui.js"></script>
        <script type="text/javascript" src="${path}/static/js/xadmin.js"></script>
	</head>

	<body>
		<div class="x-nav">
			<a href="../index">首页</a>
			<span>&gt;</span>
			<a><cite>人员管理</cite></a>
		</div>
		<div class="layui-fluid">
			<div class="layui-row layui-col-space15">
				<div class="layui-col-md12">
					<div id="btns" class="btns">
						<button type="button" class="layui-btn btn" >返回</button>
						<button type="button" class="layui-btn btn" onclick="exportDetails('${rosterId}')">导出</button>
					</div>
					<div class="layui-card">
						<div class="layui-card-body ">
							<form class="layui-form layui-col-space5">
								<div class="layui-input-inline layui-show-xs-block">
									<input type="text" name="username" placeholder="姓名" class="layui-input" maxlength="15">
								</div>

								<div class="layui-input-inline layui-show-xs-block">
									<select name="contrller">
										<option value="0">开发</option>
										<option value="1">产品</option>
										<option value="2">财务</option>
									</select>
								</div>
								<div class="layui-input-inline layui-show-xs-block">
									<select name="contrller">
										<option value="0">在职</option>
										<option value="1">离职</option>
									</select>
								</div>
								
							</form>
						</div>

						<div class="layui-card-body layui-table-body layui-table-main">
							<table class="layui-table layui-form">
								<thead>
									<tr>
										<th>姓名</th>
										<th>部门</th>
										<th>工种</th>
										<th>员工编号</th>
										<th>手机号</th>
										<th>类型</th>
									</tr>
								</thead>
								<tbody>
								<#if datas?? && (datas?size>0)>
									<#list datas as item>
									<tr>
                                        <td>${item.empName}</td>
                                        <td>${item.deptName}</td>
                                        <td>${item.jobName}</td>
                                        <td>${item.empNo}</td>
                                        <td>${item.empMobile}</td>
										<td>
											<#if item.rosterType == 1>
                                                临时
											<#else>
											长期
											</#if>
										</td>
                                    </tr>
									</#list>
								</#if>
								</tbody>
							</table>
						</div>

						<div class="layui-table-page">
							<div id="layui-table-page1">
								<div class="layui-box layui-laypage layui-laypage-default" id="layui-laypage-3"><a href="javascript:;" class="layui-laypage-prev layui-disabled"
									 data-page="0"><i class="layui-icon"></i></a><span class="layui-laypage-curr"><em class="layui-laypage-em"></em><em>1</em></span><a
									 href="javascript:;" data-page="2">2</a><a href="javascript:;" data-page="3">3</a><span class="layui-laypage-spr">…</span><a
									 href="javascript:;" class="layui-laypage-last" title="尾页" data-page="300">300</a><a href="javascript:;"
									 class="layui-laypage-next" data-page="2"><i class="layui-icon"></i></a><span class="layui-laypage-skip">到第<input
										 type="text" min="1" value="1" class="layui-input">页<button type="button" class="layui-laypage-btn">确定</button></span><span
									 class="layui-laypage-count">共 300 条</span><span class="layui-laypage-limits"><select lay-ignore="">
											<option value="10" selected="">10 条/页</option>
											<option value="20">20 条/页</option>
											<option value="30">30 条/页</option>
											<option value="40">40 条/页</option>
											<option value="50">50 条/页</option>
											<option value="100">100 条/页</option>
										</select>
									</span>
								</div>
							</div>
						</div>
						<div class="layui-card-body " style="display: none;">
							<div class="page">
								<div>
									<a class="prev" href="">&lt;&lt;</a>
									<a class="num" href="">1</a>
									<span class="current">2</span>
									<a class="num" href="">3</a>
									<a class="num" href="">489</a>
									<a class="next" href="">&gt;&gt;</a></div>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
	</body>
<script>
	// 导出
	function exportDetails(obj) {
	    if (obj == '') {
	        return;
		}
		window.open("/api/employee/schedule/export?id="+obj, "_self");
    }
</script>
</html>
